import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;


public class Tliczba {
	Liczba l = null;
	public Tliczba() {
	}

	

	@Before
	public void setUp() throws Exception {l = new Liczba(37);
	}

	@After
	public void tearDown() throws Exception {l = null;
	}

	
	@Test(expected=AssertionError.class)
	public void testosiemt() throws Exception {
		String str = l.Zmiana(-20);
		assertEquals(Integer.parseInt(str),100101);
		}
	
	@Test
		public void test8t() throws Exception {
		String str = l.Zmiana(8);
		assertSame(Integer.parseInt(str),45);
		}
	@Test
		public void test16t() throws Exception {
		String str = l.Zmiana(16);
		assertEquals(Integer.parseInt(str),25);
		}
	@Test
		public void test16nt() throws Exception {
		String str = l.Zmiana(16);
		assertNotSame(Integer.parseInt(str),37);
		}
	@Test(timeout=500)
		public void test16nnt() throws Exception {
		String str = l.Zmiana(16);
		assertTrue(" ",25==Integer.parseInt(str));
		}
	 @Ignore
		public void test16nnnt() throws Exception {
		String str = l.Zmiana(16);
		assertFalse(" ",25!=Integer.parseInt(str));
		}
	
	
	

}
